﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;

namespace Sample.Novel.Domain.Book.Entites
{
    //分卷
    public class Volume : Entity<Guid>, IHasCreationTime
    {
       public Book Book { get; set; }
        public Guid BookId { get; set; }

        public string Title { get; set; }
        public string Description { get; set; }

        public List<Chapter> chapters { get; set; }
        public DateTime CreationTime { get; }
        protected Volume()
        { 
        }
        public Volume(string title,string description=null)
        {
            Title = title;
            Description = description;
            chapters = new List<Chapter>();
        }
    }
}
